package com.hk.huakangcompany.model;

import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.List;

/**
 * @Author: aerfazhe
 * @Date: 2021/7/26 10:30
 * @Statement: 角色表
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@Builder
public class WxRole {

    private Integer id;
    private String name;
    @ApiModelProperty("描述")
    private String description;
    private Integer adminCount;
    private String gmtCreate;
    private Integer state;
    private Integer sort;

    @ApiModelProperty("所属权限ID集合")
    private List<Integer> pids;

    public WxRole(Integer id, String name, String description, Integer adminCount, String createTime, Integer state, Integer sort) {
        this.id = id;
        this.name = name;
        this.description = description;
        this.adminCount = adminCount;
        this.gmtCreate = createTime;
        this.state = state;
        this.sort = sort;
    }

}
